package com.wwl.open.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("monitor")
public class Monitor {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("mem_total")
    private double memTotal; // 总内存，单位GB
    
    @TableField("mem_used")
    private double memUsed; // 已用内存，单位GB
    
    @TableField("mem_usage_rate")
    private double memUsageRate; // 内存使用率，单位%
    
    @TableField("cpu_usage_rate")
    private double cpuUsageRate; // CPU使用率，单位%
    
    @TableField("cpu_temperature")
    private double cpuTemperature; // CPU温度，单位°C
    
    @TableField("storage_total")
    private double storageTotal; // 总存储空间，单位GB
    
    @TableField("storage_used")
    private double storageUsed; // 已用存储空间，单位GB
    
    @TableField("storage_usage_rate")
    private double storageUsageRate; // 存储使用率，单位%
    
    @TableField("timestamp")
    private LocalDateTime timestamp;
}